package edu.scau.divineplace.entity.vo.commentforum;

import edu.scau.divineplace.entity.dos.CommentForumDO;
import edu.scau.divineplace.entity.dos.UserDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: x1aolone
 * @Date: 2020/12/12 20:34
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("CommentForumNode")
public class CommentForumNode {

    public static final Integer ROOT_NODE_PARENT_ID = 0;

    @ApiModelProperty("评论id")
    private Long id;

    @ApiModelProperty("评论内容")
    private String comment;

    @ApiModelProperty("发表时间")
    private LocalDateTime createTime;

    @ApiModelProperty("发表用户信息")
    private UserDO user;

    @ApiModelProperty("被点赞次数")
    private Integer likeNum;

    @ApiModelProperty("被点赞次数")
    private Boolean isLiked;

}